﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using JM.JCY.Common;
using JM.JCY.DataAccess;
using JM.JCY.BusinessEntity;

namespace JM.JCY.BusinessComponent
{
    public class LawCaseBC : JCYBusinessComponentBase<LawCaseDA>
    {
        public LawCaseBC()
            : base(new LawCaseDA())
        {
        }

        public void UpdateSelfOperate(LawCaseDataSet.T_SelfOperateDataTable dt)
        {
            this.DataAccess.UpdateSelfOperate(dt);
        }

        public LawCaseDataSet.T_SelfOperateDataTable GetLawCaseSafety(int caseId, string userName)
        {
            return this.DataAccess.GetLawCaseSafety(caseId, userName);
        }

        public void UpdateLawCaseMaterial(LawCaseDataSet.T_LawCaseMaterialDataTable dt)
        {
            this.DataAccess.UpdateLawCaseMaterial(dt);
        }

        public LawCaseDataSet.T_LawCaseMaterialDataTable GetLawCaseMaterial(int caseId, string filler)
        {
            return this.DataAccess.GetLawCaseMaterial(caseId, filler);
        }
    }
}
